﻿.m-toolbar {
    width: 100%;
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
}

    .m-toolbar span,
    .m-toolbar a,
    .m-toolbar var {
        color: #8e8e8e;
        font-size: 0.8rem;
    }

    .m-toolbar nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .m-toolbar nav * {
            margin: 0 5px;
        }

        .m-toolbar nav a:hover {
            text-decoration: underline;
        }

    .m-toolbar .lef {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .m-toolbar .rig {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

.m-toolbar-myDuobao {
    position: relative;
}

    .m-toolbar-myDuobao:hover > .m-toolbar-myDuobao-menu {
        display: block;
    }

.m-toolbar-myDuobao-menu {
    background-color: white;
    box-shadow: 1px 1px 3px #aaa;
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100px;
    text-align: center;
    padding-top: 30px;
    padding-bottom: 10px;
    z-index: 1;
    display: none;
    transition: all 0.5s;
}

    .m-toolbar-myDuobao-menu li {
        margin-top: 15px;
    }

.m-toolbar-user {
    position: relative;
    padding: 5px 0;
}

    .m-toolbar-user .tit {
        color: orange;
    }

.m-toolbar-myDuobao-btn {
    display: inline-block;
    position: relative;
    z-index: 2;
}

.m-toolbar-user:hover #upanel {
    display: flex;
}

#upanel {
    width: 220px;
    height: 60px;
    border-radius: 0 10px 10px 10px;
    box-shadow: 1px 1px 4px #444;
    position: absolute;
    top: 28px;
    background-color: white;
    z-index: 5;
    display: none;
    justify-content: space-between;
    align-items: center;
    visibility: hidden;
}

    #upanel .hb {
        width: 50px;
    }

    #upanel .headimg {
        width: 50px;
        height: 50px;
    }

    #upanel .inf {
        flex-grow: 1;
        display: flex;
        justify-content: space-between;
        height: 70%;
        margin-left: 3px;
        flex-direction: column;
    }

        #upanel .inf > div {
            width: 100%;
        }

    #upanel .quitlogin {
        color: red;
        display: inline-block;
        margin-left: 5px;
        font-size: 0.7rem;
    }

    #upanel .d1 .username {
        color: orange;
    }
